package org.example._00_base;


/**
 * 抽象类：对一个类的共同特性的抽象
 */
public abstract class _01_Dog {
    //品种
    String breed;
    //大小
    int size;
    //颜色
    String colour;
    //岁数
    int age;

    public _01_Dog(String breed) {
        this.breed = breed;
    }

    void eat() {
        System.out.println("dog,张嘴就吃...");
    }

    void run() {
        System.out.println("dog,撒腿就跑...");
    }

    void sleep(){
        System.out.println("dog,沾地就睡...");
    }

}
